package com.lqian.demo02.part4.controller;

import com.lqian.demo02.part4.service.BankService;

import java.util.Scanner;

/**
 * @author：Melody_LQ
 * @time：2022/7/14 1:22 下午
 */
public class BankController {
    private static  BankService bankService = new BankService();

    public static void main(String[] args) {

        Scanner sc =new Scanner(System.in);
        System.out.println("转款方是: ");
        String transferName = sc.next();
        System.out.println("转款金额为: ");
        float money = sc.nextFloat();
        System.out.println("收款方是: ");
        String receiverName = sc.next();
        bankService.transfer(transferName,receiverName,money);

    }
}
